package com.cn.xiaonuo.slbfinances.slborders.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.slborders.param.AuditParam;
import com.cn.xiaonuo.slbfinances.slborders.param.PaymentParam;
import com.cn.xiaonuo.slbfinances.slborders.param.SlScoreWithdrawParam;
import com.cn.xiaonuo.slbfinances.slborders.service.SlScoreWithdrawService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author huangtao
 * @date 2023/7/5 11:31
 * @className SlScoreWithdrawController
 */
@Api(tags = "提现管理")
@RestController
public class SlScoreWithdrawController {
    @Autowired
    private SlScoreWithdrawService slScoreWithdrawService;

    @ApiOperation(value = "提现管理-列表", notes = "提现管理-列表")
    @PostMapping("/api/sl/scorewithdraw/list")
    public BusinessMessage list(@RequestBody SlScoreWithdrawParam param) {
        return slScoreWithdrawService.list(param);
    }

    @ApiOperation(value = "提现管理-审核", notes = "提现管理-审核")
    @PostMapping("/api/sl/scorewithdraw/audit")
    public BusinessMessage audit(@RequestBody AuditParam param) {
        return slScoreWithdrawService.audit(param);
    }


    @ApiOperation(value = "提现管理-打款", notes = "提现管理-打款")
    @PostMapping("/api/sl/scorewithdraw/payment")
    public BusinessMessage audit(@RequestBody PaymentParam param) {
        return slScoreWithdrawService.payment(param);
    }
}
